<?php
/** 
 * $Source: /cvsroot/pn-commerce/pn-commerce/pntemplates/plugins/modifier.pncShowOrderStatusText.php,v $
 * $Author: pcornelissen $
 * $Revision: 1.3 $
 * $Date: 2003/12/08 12:09:47 $
 *
 * Type: Modifier
 *
 * generates the description for a given Orderstatusnumber
 * @param $string the ordernumber
 * @return string 
 */
function smarty_modifier_pncShowOrderStatusText ($string)
{
    switch( $string )
    {
        case  '0':
        $os = ""._PNC_ORDER_NEW;
        break;
    case '10':
        $os = ""._PNC_ORDER_PAID;
        break;
    case '90':
        $os = ""._PNC_ORDER_DONE;
        break;
    case '99':
        $os = ""._PNC_ORDER_DELETED;
        break;
    default:
        $os = ""._PNC_ORDER_UNKNOWNSTATUS;
        break;
    }
    return $os;
}
?>
